<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>

</h:head>
<h:body>
	<ui:composition>
		<f:loadBundle var="bundle"
			basename="com.example.bookstore.messages.BookstoreMessages" />
		<center>
			<h1>
				<font size="+3" color="#CC0066">Duke's </font> <img
					src="template/duke.books.gif" alt="Duke holding books" /> <font
					size="+3" color="black">Bookstore</font>
			</h1>
			<p>
				<br />
				<h:form id="banner">
					<h:commandLink id="account" action="#{store.account}">
						<h:outputText value="Account" />
					</h:commandLink>&nbsp;
					<h:commandLink id="catalog" action="#{store.catalog}">
						<h:outputText value="Catalog" />
					</h:commandLink>&nbsp;
					<h:commandLink id="cart" action="#{store.cart}">
						<h:outputText value="View Cart" />
						<h:outputText rendered="#{cart.numberOfItems > 0}"
							value=", Size = #{cart.numberOfItems}" />
					</h:commandLink>

					<br />
					<h:inputText id="text" size="50" value="#{search.text}" />
					<h:commandButton id="searchBtn" value="Search"
						action="#{search.search}" />
				</h:form>
			</p>
		</center>
	</ui:composition>
</h:body>

</html>